package gatoropoly.game.action;

import gatoropoly.game.Gatoropoly;

public class JailCardAction extends GatoropolyClientAction {

	public JailCardAction(Gatoropoly client) {
		super(client, "Use Card");
	}

	public void perform() {
		client.jailCard();
	}

	public boolean canPerform() {
		return super.canPerform() && self().isJailed() && self().canUseCard();
	}

}
